package com.springclouddemo.service.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@EnableDiscoveryClient//服务注册
@EnableFeignClients(basePackages = "com.springclouddemo")//服务发现
@ComponentScan(basePackages = "com.springclouddemo")
//@MapperScan("com.springclouddemo.*")
@MapperScan("com.springclouddemo.service.user.mapper")
@SpringBootApplication
public class UserServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserServiceApplication.class, args);
    }

//    @Bean
//    public RestTemplate getRestTemplate(){
//        return new RestTemplate();
//    }
}
